Add more safeguards around odd filenames
authorAlex Crichton <alex@alexcrichton.com>
Wed, 4 Nov 2015 21:11:19 +0000 (13:11 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 4 Nov 2015 21:11:19 +0000 (13:11 -0800)
commitafe837d7e619a4590399be681fe8d32d36c68da2
tree8c93f1049518933e9d0360e4e88e3ae931ac87df
parent3767ad20dbc8d288592f71cabae7350e24272068
Add more safeguards around odd filenames

This commit is targeted at fixing #2102 via two routes:

1. The dependency on `tar` was upgraded to include more contextual information
   in error messages about why the unpack failed. This should help diagnose
   these sorts of issues that happen in the first place.
2. Packaging crates that have files with odd filenames is no longer allowed.
   An error is returned indicating that the files cannot be packaged as they're
   not cross platform. The currently rejected set of files are non-utf8
   filenames (already present) and those containing characters special on
   Windows.

Closes #2102
Cargo.lock
src/cargo/ops/cargo_package.rs
tests/test_cargo_package.rs